package com.decorate.demo05;

/**
 * 3.抽象装饰角色,去装饰 Order
 */
public abstract class OrderDecorator extends Order{
    protected Order order;
    public OrderDecorator(Order order){
        this.order = order;
        // 开始给HeaderDecorator / FooterDecorator 中的salesDate,customerName赋值
        this.setSalesDate(order.getSalesDate());
        this.setCustomerName(order.getCustomerName());
//        this.setItems(order.getItems());
    }

//    @Override
//    public void print(){
//        super.print();
//    }
}
